package main.java;

public class Calculadora {
	public double multiplicacion (double a , double b){
		return a*b ; 
	}

	public double sumar (double a, double b){
		return a + b ;
	}
	public double division (double a, double b){
		if (b == 0) {
			throw new RuntimeException("Dividir por cero");
		} else {
			return a / b ;
		}
	}
	public double restar (double a, double b){
		return a - b ; 
	}
}
